package {
	
	import flash.events.Event;
	
	public class CubeEvent extends Event {
		
		public static const CUBES_MADE:String = "cubesMade";
		
		private var _cubesMade:int;
		
		public function CubeEvent(type:String, cubesMade:int, bubbles:Boolean=false, cancelable:Boolean=true) {
			_cubesMade = cubesMade;
			super(type, bubbles, cancelable);
		}
		
		public function get cubesMade():int {
			return _cubesMade;
		}
		
		override public function clone():Event {
			return new CubeEvent(type, cubesMade, bubbles, cancelable);
		}
		
		override public function toString():String {
			return formatToString("CubeEvent", "cubesMade");
		}
	}	
}